import Demo from './demo'
import Card from './card'

const components = {
  Demo,
  Card
}

const install = function(Vue) {
  // avoid installing again
  if(install.installed) return
  Object.keys(components).forEach(i => {
    Vue.component(components[i].name, components[i])
  })
}

const API = {
  version: '0.1.3',
  ...components,
  // Card,
  install
}

export default API